import { request } from "../util/request.js";

export default {
    //电影信息列表
    get:async({ page = 1, limit = 3 } = {})=>{

        return await request({
            type:"GET",
            url:"",
            data:{
                page, limit
            }
        });

    },
    //把获取到的相对应的值存储在本地
    setStorage: AdminMovies =>
        (localStorage["updade-adminMovies"] = JSON.stringify(AdminMovies)),
    //获取本地存储的值
    getStorage: () => JSON.parse(localStorage["updade-adminMovies"]),

    // 修改电影信息
    

}